package com.model
{
	import flash.events.EventDispatcher;
	import com.adobe.cairngorm.model.ModelLocator;
	import mx.collections.ArrayCollection;

	[Bindable]
	public class ModelLocator extends EventDispatcher implements com.adobe.cairngorm.model.ModelLocator
	{
		private static var modelLocator : com.model.ModelLocator;

		public function ModelLocator() 
       	{
        	if ( com.model.ModelLocator.modelLocator != null )
            	throw new Error( "Only one ModelLocator instance should be instantiated" );    
       	}

		public static function getInstance():com.model.ModelLocator{
            if(modelLocator == null){
                modelLocator = new com.model.ModelLocator();
            }
            return modelLocator;           
        }		
        
        //LOGIN
        public var viewStackSelection : Number;
        public static const VIEWING_LOGIN_SCREEN : Number = 1;
        public static const VIEWING_LOGGED_IN_SCREEN : Number = 2;        
        
        //GESTOR QUINIELA
        public var usuario : String;
        public var password : String;
        public var nameUsuario : String;
        
        public var html : String;	//ristra de datos que nos provee la URL
		public var arrayDatos:ArrayCollection = new ArrayCollection();			
		public var arrayJornadas : ArrayCollection = new ArrayCollection();		
		public var arrayEscrutinio : ArrayCollection = new ArrayCollection();		
		public var fecha : String;			
		public var fechaDate : Date;	
		public var selectedItem : Object;	
		public var link : String;  
		public var selectedDate : Date;
	}
}